<template>
  <el-config-provider
    :size="config.size"
    :zIndex="config.zIndex"
    :button="config.button"
  >
    <router-view></router-view>
  </el-config-provider>
</template>

<script setup>
import useSettingsStore from "@/store/modules/settings";
import { handleThemeStyle } from "@/utils/theme";
const config = ref({
  size: "default",
  zIndex: 2000,
  button: {
    autoInsertSpace: false,
  },
});
onMounted(() => {
  nextTick(() => {
    // 初始化主题样式
    handleThemeStyle(useSettingsStore().theme);
  });
});
</script>
<style lang="scss">
@use "@/assets/styles/index.scss";
</style>
